From 0e07d6589e539096e126940588faec31ce5cce9a Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sun, 4 Mar 2012 11:17:30 -0500 Subject: [PATCH] gdk: Don't drop the emulating_pointer flag When manually copying touch events, we must not forget the emulating_pointer flag. --- gdk/gdkwindow.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c index 9a053b88f0..72f0a18ee3 100644 --- a/gdk/gdkwindow.c +++ b/gdk/gdkwindow.c @@ -9484,6 +9484,7 @@ proxy_pointer_event (GdkDisplay *display, event->touch.time = time_; event->touch.state = state | GDK_BUTTON1_MASK; event->touch.sequence = source_event->touch.sequence; + event->touch.emulating_pointer = source_event->touch.emulating_pointer; convert_toplevel_coords_to_window (event_win, toplevel_x, toplevel_y, &event->touch.x, &event->touch.y); @@ -9772,6 +9773,7 @@ proxy_button_event (GdkEvent *source_event, event->touch.axes = g_memdup (source_event->touch.axes, sizeof (gdouble) * gdk_device_get_n_axes (source_event->touch.device)); event->touch.sequence = source_event->touch.sequence; + event->touch.emulating_pointer = source_event->touch.emulating_pointer; gdk_event_set_source_device (event, source_device); -- 2.30.2